package com.yao.club.entity.dto;

import com.yao.club.entity.Topic;

import javax.persistence.*;
import java.math.BigDecimal;
import java.time.Instant;
import java.util.Date;
import java.util.List;

@Entity
@Table(name = "posts")
public class PostsInfo {
    @Id
    @Column(name = "posts_id", nullable = false)
    private Long postsId;

    @Column(name = "user_id", length = 50)
    private String userId;

    @Lob
    @Column(name = "content")
    private String content;

    @Column(name = "img_ids", length = 300)
    private String imgIds;

    @Column(name = "series", length = 20)
    private String series;

    @Column(name = "vehicle_model_id", length = 32)
    private String vehicleModelId;

    @Column(name = "model_nickname", length = 50)
    private String modelNickname;

    @Column(name = "model_name", length = 50)
    private String modelName;

    @Column(name = "channel")
    private Boolean channel;

    @Column(name = "channel_tr", length = 10)
    private String channelTr;

    @Column(name = "virtual_share_number")
    private Integer virtualShareNumber;

    @Column(name = "virtual_like_number")
    private Integer virtualLikeNumber;

    @Column(name = "share_number")
    private Integer shareNumber;

    @Column(name = "like_number")
    private Integer likeNumber;

    @Column(name = "comment_number")
    private Integer commentNumber;

    @Column(name = "collect_number")
    private Integer collectNumber;

    @Column(name = "if_tip_off", length = 10)
    private String ifTipOff;

    @Column(name = "tip_off_number")
    private Integer tipOffNumber;

    @Column(name = "if_sensitive")
    private Boolean ifSensitive;

    @Column(name = "topic_ids", length = 300)
    private String topicIds;

    @Column(name = "topic_str")
    private String topicStr;

    @Column(name = "if_recommend")
    private Boolean ifRecommend;

    @Column(name = "if_hot")
    private Boolean ifHot;

    @Column(name = "weight_score", precision = 10, scale = 2)
    private BigDecimal weightScore;

    @Column(name = "category_str", length = 20)
    private String categoryStr;

    @Column(name = "recommend_sort")
    private Integer recommendSort;

    @Column(name = "hot_sort")
    private Integer hotSort;

    @Column(name = "search_sort")
    private Integer searchSort;

    @Column(name = "if_up")
    private Boolean ifUp;

    @Column(name = "if_ip_str", length = 10)
    private String ifIpStr;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "create_by", length = 32)
    private String createBy;

    @Column(name = "create_time")
    private Date createTime;

    public Long getPostsId() {
        return postsId;
    }

    public void setPostsId(Long postsId) {
        this.postsId = postsId;
    }

    @Column(name = "list_show_time", length = 20)
    private String listShowTime;

    @Column(name = "if_like")
    private Boolean ifLike;

    @Column(name = "if_my")
    private Boolean ifMy;

    @Column(name = "if_collect")
    private Boolean ifCollect;

    @Column(name = "lon", precision = 12, scale = 6)
    private Double lon;

    @Column(name = "lat", precision = 12, scale = 6)
    private Double lat;

    @Column(name = "location", length = 100)
    private String location;

    @Column(name = "if_audit")
    private Boolean ifAudit;

    @Column(name = "if_video")
    private Boolean ifVideo;

    @Column(name = "if_transcode")
    private Boolean ifTranscode;

    @Column(name = "if_all_series")
    private Boolean ifAllSeries;

    @Column(name = "if_all_vehicle_model")
    private Boolean ifAllVehicleModel;

    @Column(name = "if_aftersale")
    private Boolean ifAftersale;

    @Column(name = "aftersale_status")
    private Boolean aftersaleStatus;

    @Column(name = "aftersale_result")
    private String aftersaleResult;

    @Column(name = "update_by", length = 32)
    private String updateBy;

    @Column(name = "update_name", length = 50)
    private String updateName;

    @Column(name = "aftersale_time")
    private Instant aftersaleTime;

    @Column(name = "del_flag")
    private Integer delFlag;

    @Column(name = "relation")
    private Integer relation;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImgIds() {
        return imgIds;
    }

    public void setImgIds(String imgIds) {
        this.imgIds = imgIds;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public String getVehicleModelId() {
        return vehicleModelId;
    }

    public void setVehicleModelId(String vehicleModelId) {
        this.vehicleModelId = vehicleModelId;
    }

    public String getModelNickname() {
        return modelNickname;
    }

    public void setModelNickname(String modelNickname) {
        this.modelNickname = modelNickname;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public Boolean getChannel() {
        return channel;
    }

    public void setChannel(Boolean channel) {
        this.channel = channel;
    }

    public String getChannelTr() {
        return channelTr;
    }

    public void setChannelTr(String channelTr) {
        this.channelTr = channelTr;
    }

    public Integer getVirtualShareNumber() {
        return virtualShareNumber;
    }

    public void setVirtualShareNumber(Integer virtualShareNumber) {
        this.virtualShareNumber = virtualShareNumber;
    }

    public Integer getVirtualLikeNumber() {
        return virtualLikeNumber;
    }

    public void setVirtualLikeNumber(Integer virtualLikeNumber) {
        this.virtualLikeNumber = virtualLikeNumber;
    }

    public Integer getShareNumber() {
        return shareNumber;
    }

    public void setShareNumber(Integer shareNumber) {
        this.shareNumber = shareNumber;
    }

    public Integer getLikeNumber() {
        return likeNumber;
    }

    public void setLikeNumber(Integer likeNumber) {
        this.likeNumber = likeNumber;
    }

    public Integer getCommentNumber() {
        return commentNumber;
    }

    public void setCommentNumber(Integer commentNumber) {
        this.commentNumber = commentNumber;
    }

    public Integer getCollectNumber() {
        return collectNumber;
    }

    public void setCollectNumber(Integer collectNumber) {
        this.collectNumber = collectNumber;
    }

    public String getIfTipOff() {
        return ifTipOff;
    }

    public void setIfTipOff(String ifTipOff) {
        this.ifTipOff = ifTipOff;
    }

    public Integer getTipOffNumber() {
        return tipOffNumber;
    }

    public void setTipOffNumber(Integer tipOffNumber) {
        this.tipOffNumber = tipOffNumber;
    }

    public Boolean getIfSensitive() {
        return ifSensitive;
    }

    public void setIfSensitive(Boolean ifSensitive) {
        this.ifSensitive = ifSensitive;
    }

    public String getTopicIds() {
        return topicIds;
    }

    public void setTopicIds(String topicIds) {
        this.topicIds = topicIds;
    }

    public String getTopicStr() {
        return topicStr;
    }

    public void setTopicStr(String topicStr) {
        this.topicStr = topicStr;
    }

    public Boolean getIfRecommend() {
        return ifRecommend;
    }

    public void setIfRecommend(Boolean ifRecommend) {
        this.ifRecommend = ifRecommend;
    }

    public Boolean getIfHot() {
        return ifHot;
    }

    public void setIfHot(Boolean ifHot) {
        this.ifHot = ifHot;
    }

    public BigDecimal getWeightScore() {
        return weightScore;
    }

    public void setWeightScore(BigDecimal weightScore) {
        this.weightScore = weightScore;
    }

    public String getCategoryStr() {
        return categoryStr;
    }

    public void setCategoryStr(String categoryStr) {
        this.categoryStr = categoryStr;
    }

    public Integer getRecommendSort() {
        return recommendSort;
    }

    public void setRecommendSort(Integer recommendSort) {
        this.recommendSort = recommendSort;
    }

    public Integer getHotSort() {
        return hotSort;
    }

    public void setHotSort(Integer hotSort) {
        this.hotSort = hotSort;
    }

    public Integer getSearchSort() {
        return searchSort;
    }

    public void setSearchSort(Integer searchSort) {
        this.searchSort = searchSort;
    }

    public Boolean getIfUp() {
        return ifUp;
    }

    public void setIfUp(Boolean ifUp) {
        this.ifUp = ifUp;
    }

    public String getIfIpStr() {
        return ifIpStr;
    }

    public void setIfIpStr(String ifIpStr) {
        this.ifIpStr = ifIpStr;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getListShowTime() {
        return listShowTime;
    }

    public void setListShowTime(String listShowTime) {
        this.listShowTime = listShowTime;
    }

    public Boolean getIfLike() {
        return ifLike;
    }

    public void setIfLike(Boolean ifLike) {
        this.ifLike = ifLike;
    }

    public Boolean getIfMy() {
        return ifMy;
    }

    public void setIfMy(Boolean ifMy) {
        this.ifMy = ifMy;
    }

    public Boolean getIfCollect() {
        return ifCollect;
    }

    public void setIfCollect(Boolean ifCollect) {
        this.ifCollect = ifCollect;
    }

    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Boolean getIfAudit() {
        return ifAudit;
    }

    public void setIfAudit(Boolean ifAudit) {
        this.ifAudit = ifAudit;
    }

    public Boolean getIfVideo() {
        return ifVideo;
    }

    public void setIfVideo(Boolean ifVideo) {
        this.ifVideo = ifVideo;
    }

    public Boolean getIfTranscode() {
        return ifTranscode;
    }

    public void setIfTranscode(Boolean ifTranscode) {
        this.ifTranscode = ifTranscode;
    }

    public Boolean getIfAllSeries() {
        return ifAllSeries;
    }

    public void setIfAllSeries(Boolean ifAllSeries) {
        this.ifAllSeries = ifAllSeries;
    }

    public Boolean getIfAllVehicleModel() {
        return ifAllVehicleModel;
    }

    public void setIfAllVehicleModel(Boolean ifAllVehicleModel) {
        this.ifAllVehicleModel = ifAllVehicleModel;
    }

    public Boolean getIfAftersale() {
        return ifAftersale;
    }

    public void setIfAftersale(Boolean ifAftersale) {
        this.ifAftersale = ifAftersale;
    }

    public Boolean getAftersaleStatus() {
        return aftersaleStatus;
    }

    public void setAftersaleStatus(Boolean aftersaleStatus) {
        this.aftersaleStatus = aftersaleStatus;
    }

    public String getAftersaleResult() {
        return aftersaleResult;
    }

    public void setAftersaleResult(String aftersaleResult) {
        this.aftersaleResult = aftersaleResult;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public Instant getAftersaleTime() {
        return aftersaleTime;
    }

    public void setAftersaleTime(Instant aftersaleTime) {
        this.aftersaleTime = aftersaleTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getRelation() {
        return relation;
    }

    public void setRelation(Integer relation) {
        this.relation = relation;
    }

}
